const user = require("../models/userMoel");
const getUserInfo = async function(ctx) {
  const id = ctx.params.id;//获取url里传过来的id
  const result = await user.getUserById(id);
  ctx.body = result;//将请求的结果放到response
}

module.exports = {
  getUserInfo
};